home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news99.sunet.se!liuida!news
- From: c92manen@und.ida.liu.se (Mans Engman)
- Subject: Re: 680X0 -> PPC translator?
- X-Nntp-Posting-Host: astmatix.ida.liu.se
- Message-ID: <1190.6631T892T581@und.ida.liu.se>
- Sender: news@ida.liu.se
- Organization: CIS Dept, Linkoping University, Sweden
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
- References: <4fstt2$old@newsstand.cit.cornell.edu> <PETERM.96Feb19135541@tui.maths.irl.cri.nz> <4glch6$rle@ra.nrl.navy.mil>
- Date: Tue, 27 Feb 1996 13:52:11 GMT
-
-
- fkrj@crux4.cit.cornell.edu (Benjamin Kenobi) writes:
- >I'm just wondering, is there any good reason AT can't write a program
- >which will tranlsate binary executables from 680X0 -> PPC, doing
- >optimizations along the way? That way we could translate most of our old
- >software and it would run efficiently. Why didn't Apple do this with the
- >PowerMacs?
-
- It is not possible, in the general case, to do completely static code-
- translation. This means that on some stage there always has to be some kind of
- interpretation involved, no matter how complex you make the translator.
- For instance, think about how to handle this simple question:
- For a given program, what is code and what is data?
- Ok, so you make a little code reachability test to find out...but then, how do
- you make it handle indirect jumps (library calls!)? Hmm...just emulate the
- code perhaps? :) How would you handle on-the-fly code creating/modifying? Ok,
- so noone uses self-modifying code anymore, but what if some code is
- compressed, for instance? You can't solve these problems without having rigid
- rules which completely separate code from data. And that would break quite a
- few programs.
-
- /Mans (.sig being recompiled)
-
-